package com.jd.finance.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.core.pojo.entity.Connect;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户离职 交接申请表 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-25
 */
public interface ConnectService extends IService<Connect> {

    /**
     * 发起交接申请
     *
     * @param uid         管理员id
     * @param leaveId     离职人id
     * @param loanApplyId 负责的业务id
     * @return
     */
    BaseResult applyConn(@Param("uid") Integer uid, @Param("leaveId") Integer leaveId, @Param("onId") Integer onId, @Param("loanApplyId") String loanApplyId);

    /**
     * 审核交接申请
     * @param uid
     * @param isPass 审核状态
     * @return
     */
    BaseResult examConnectApply(@Param("uid") Integer uid, @Param("connectId") Integer connectId, @Param("connectApplyStatus") Integer isPass);

    /**
     * 业务交接
     * @param uid
     * @param leaveId
     * @param onId
     * @param loanApplyId
     * @return
     */
    BaseResult examConnect(@Param("uid") Integer uid, @Param("leaveId") Integer leaveId, @Param("onId") Integer onId, @Param("loanApplyId") String loanApplyId);
}
